package com.zjb.home.boxingtu.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.pgyersdk.update.PgyUpdateManager;
import com.zjb.home.boxingtu.R;
import com.zjb.home.boxingtu.activity.anim.AnimActivity;
import com.zjb.home.boxingtu.activity.boxingtu.BoXingTuActivity;
import com.zjb.home.boxingtu.activity.circle.CircleActivity;
import com.zjb.home.boxingtu.activity.datepicker.DatePickerActivity;
import com.zjb.home.boxingtu.activity.indicator.IndicatorActivity;
import com.zjb.home.boxingtu.activity.other.OtherActivity;
import com.zjb.home.boxingtu.activity.progress.ProgressActivity;
import com.zjb.home.boxingtu.activity.zhuzhuangtu.ZhuZhuangTuActivity;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        new PgyUpdateManager.Builder()
                .register();
        findViewById(R.id.btn0001).setOnClickListener(this);
        findViewById(R.id.btn0002).setOnClickListener(this);
        findViewById(R.id.btn0003).setOnClickListener(this);
        findViewById(R.id.btn0018).setOnClickListener(this);
        findViewById(R.id.btn0024).setOnClickListener(this);
        findViewById(R.id.btn0026).setOnClickListener(this);
        findViewById(R.id.btn0006).setOnClickListener(this);
        findViewById(R.id.btn0007).setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        Intent intent = new Intent();
        switch (view.getId()) {
            case R.id.btn0001:
                intent.setClass(this, BoXingTuActivity.class);
                startActivity(intent);
                break;
            case R.id.btn0018:
                intent.setClass(this, ZhuZhuangTuActivity.class);
                startActivity(intent);
                break;
            case R.id.btn0003:
                intent.setClass(this, CircleActivity.class);
                startActivity(intent);
                break;
            case R.id.btn0024:
                intent.setClass(this, ProgressActivity.class);
                startActivity(intent);
                break;
            case R.id.btn0026:
                intent.setClass(this, DatePickerActivity.class);
                startActivity(intent);
                break;
            case R.id.btn0002:
                intent.setClass(this, AnimActivity.class);
                startActivity(intent);
                break;
            case R.id.btn0007:
                intent.setClass(this, IndicatorActivity.class);
                startActivity(intent);
                break;
            case R.id.btn0006:
                intent.setClass(this, OtherActivity.class);
                startActivity(intent);
                break;
            default:
                break;
        }
    }
}
